<?php

namespace App\Http\Requests\Mini\Shop;

use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Http\Request;

class orderPay extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {

        return [
            'order_id' => 'required',
//            'order_no' => 'required'
        ];
    }


    public function messages()
    {
        return [
            'order_id.required' => '请传递订单ID',
            'order_no.required' => '请填写订单号'
        ];
    }
}
